
.plugin-status {
  margin-bottom: 5px;
  border-radius: 5px;
  padding: 10px 20px;
}

.build-error .alert {
  margin-bottom: 5px;
  padding: 0.3em 0.5em;

  pre {
    margin-top: 0.2em;
  }
}

#build-metadata {
  border-radius: 5px;
  padding: 0 10px;
  margin-bottom: 5px;

  .progress-meter {
    min-width: 50px;
  }

  .job-link-id {
    padding: 0 5px;
    vertical-align: super;
  }

  .committer img {
    max-width: 30px;
  }

  .current-build-menu {
    .dropdown-menu {
      top: 28px;
    }
  }
}

.commit-url {
  .trigger-icon {
    font-size: 15px;
  }
}

.loading-icon {
  margin-top: 20px;
  margin-left: 20px;
  color: #333;
}

/** job view styling **/

body.job_view .body-content {
  min-height: 300px;
  overflow: visible;
}

.job-pre-console {
  margin: 0;
}

.footer {
  color: white;
  font-weight: bold;
  text-align: center;
  padding-bottom: 2px;
  background-color: #444;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
}

#build-page {
  a, .clickable {
    color: black;
    cursor: pointer;
    &:hover {
      text-decoration: none;
      color: #999;
    }
  }

  .footer a {
    color: white
  }
}

.console-output {
  overflow-y: auto;
  overflow-x: visible; 
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  -webkit-flex: 1;
  flex: 1;

  .prompt {
    color: yellow;
    margin-left: 5px;
  }

  .plus {
    color: #070;
    font-size: 10px;
  }

  .arrow {
    color: #070;
  }

  .phase.collapsed {
    .arrow {
      margin-left: 2px;
    }
  }

  .command {
    &.comment {
      .title {
        .prompt, .command-text {
          color: #70c;
        }
      }
    }

    > .title {
      cursor: pointer;
      padding-right: 10px;

      &:hover {
        background-color: #222;
      }
      
      .meta {
        color: #999;

        time {
          width: 41px;
          display: inline-block;
          text-align: right;
        }

        .plugin {
          color: #09a;
        }
      }
    }
  }

  &, pre {
    background-color: black;
    font-family: monospace;
    color: white;
  }

  pre {
    padding: 0 0 0 5px;
    margin: 0;
    border-radius: 0;
    border-width: 0;
  }

  .phase {
    > .title {
      background-color: #333;
      padding: 5px 5px 5px 10px;
      margin-bottom: 5px;
      cursor: pointer;

      .meta {
        margin-right: 5px;
      }

    }

    margin-bottom: 10px;

    &:last-child {
      margin-bottom: 0;
    }
  }
}

body.job_view #spinner {
  display: inherit;
}

body.job_view .job-detail-sidebar {
  right: 0;
}

body.job_view .job-left-col div {
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

body.job_view .job-left-col {
  left: 0;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
}

body.job_view .wrap {
  min-height: 0 !important;
}

body.job_view footer {
  display: none;
}

@media (max-width: 768px) {
  pre.console-output {
    position: static;
    max-height: 500px; 
  }
  body.job_view #build-metadata .span3 {
    display: inline-block;
  }
  body.job_view #build-metadata .span9 {
    width: 75%;
    float: right;
  }
  body.job_view #list-of-builds .span6:first-child,
  body.job_view #build-metadata .span6:first-child {
    float: left;
  }
}

@media (max-width: 768px) {
  .console-output {
    position: static;
  }
}
